package cn.weiyang.testFileReader;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class TestReadFile {
	public static void main(String[] args){
		FileReader fr=null;
		try {
			 fr=new FileReader("E:/a.txt");
			char c=(char) fr.read();
			char c2=(char) fr.read();
			System.out.println(""+c+c2);
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}finally{
			try {
				fr.close();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
	}

}
